package com.sc.nft.entity.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sc.nft.enums.TradingPoolAccountCategoryEnum;
import com.sc.nft.enums.TradingPoolAccountTypeEnum;
import com.sc.nft.sup.PageRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author 刘国航
 * @desc
 * @since 2024/11/1 14:21
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class TradingPoolAccountRecordDTO extends PageRequest {

    @ApiModelProperty("品牌id")
    @NotNull(message = "品牌id不能为空")
    private Long daoId;

    @ApiModelProperty("大类")
    @NotNull(message = "大类不能为空")
    private TradingPoolAccountCategoryEnum category;

    @ApiModelProperty("来源")
    private TradingPoolAccountTypeEnum source;

    @ApiModelProperty("开始时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @ApiModelProperty("结束时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

}
